package com.borened.common.boot.security;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * 需要某个角色
 *
 * @author cch
 * @since 2023-04-19
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
@Inherited
@Documented
public @interface RequireRole {
    @AliasFor(value = "roleCode")
    String value() default "";

    @AliasFor(value = "value")
    String roleCode() default "";
}
